<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-eval' 'unsafe-inline' https://api.gdevelop-app.com https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js https://checkout.stripe.com/checkout.js https://api.keen.io https://fullstory.com/s/fs.js https://rs.fullstory.com">
    <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
    <title>GDevelop 5</title>

    <style>
      html, body {
        margin: 0;
        padding: 0;
        height: 100%;
        background-color: #f0f0f0;
      }

      body {
        background-image: url('');
        background-repeat: no-repeat;
        background-position: center center;
      }
    </style>

    <!-- Progressive Web App support -->
    <meta name="theme-color" content="#4ab0e4">
    <link rel="manifest" href="%PUBLIC_URL%/manifest.json">
  </head>
  <body>
    <!-- Root div used for React `App` component rendering-->
    <div id="root"></div>

    <!-- GDevelop.js core -->
    <script>
      //Ensure module is not defined to avoid GDevelop.js to think
      //that it is in a CommonJS environment (useful when using Electron).
      if (typeof module !== "undefined") module = undefined;

      //It will include itself into global.gd
    </script>
    <script src="%PUBLIC_URL%/libGD.js"></script>

    <!-- Stripe.com Checkout -->
    <script src="https://checkout.stripe.com/checkout.js"></script>

    <!-- Monaco Editor support -->
    <script>
      // Monaco editor is using amd require. Save the Node.js require if it exists (Electron)
      nodeRequire = typeof require !== "undefined" ? require : undefined;
    </script>
    <script src="%PUBLIC_URL%/external/monaco-editor-min/vs/loader.js"></script>
    <script>
      // Restore back the Node.js require (Electron) and delete "define" which can
      // trick some libraries into thinking they are in an AMD (RequireJS) environment.
      amdRequire = require;
      require = nodeRequire;
      define = undefined;

      // Set up Monaco Editor workers support
      amdRequire.config({
        paths: {
          "vs": "vs"
        }
      });
      window.MonacoEnvironment = {
        getWorkerUrl: function (workerId, label) {
          return "external/monaco-editor-min/vs/base/worker/workerMain.js";
        }
      };
    </script>
  </body>
</html>
